﻿<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="lib/html5shiv.js"></script>
	<script type="text/javascript" src="lib/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<title>我的桌面</title>
</head>
<body>
<div class="page-container">
	<p class="f-20 text-success">欢迎:<span th:text="${session.name}"></span>来到物业管理系统 <span class="f-14"></span></p>





	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
		<tr>
			<th colspan="2" scope="col">服务器信息</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<th width="30%">登录次数</th>
			<td><span id="td2"></span></td>
		</tr>
		<tr>
			<td>服务器IP地址</td>
			<td id="1"></td>
		</tr>
		<tr>
			<td>地区代码</td>
			<td id="2"></td>
		</tr>
		<tr>
			<td>服务器端口 </td>
			<td id="td1"></td>
		</tr>
		<tr>
			<td>当前时间 </td>
			<td id="3"></td>
		</tr>
		<tr>
			<td>所在地 </td>
			<td id="4"></td>
		</tr>
		<tr>
			<td>客户端当前路径</td>
			<td id="6"></td>
		</tr>
		<tr>
			<td>客户端类型</td>
			<td id="7"></td>
		</tr>
		<tr>
			<td>您的网络链接状态是 </td>
			<td id="netline"></td>
		</tr>
		<tr>
			<td>您电脑的分辨率是 </td>
			<td id="fenbianlv"></td>
		</tr>
		<tr>
			<td>您的浏览器是</td>
			<td id="liulanqi"></td>
		</tr>
		<tr>
			<td>您的系统是</td>
			<td id="8"></td>
		</tr>

		</tbody>
	</table>
</div>
<footer class="footer mt-20">
	<div class="container">

		<p>© 2019-2020 贵州天能物业管理有限公司<br>
	</div>
</footer>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" th:inline="javascript">
	$(document).ready(function(){
		var local = window.location.host;//网站ip
		var port = window.location.port;//端口
		var d = new Date();
		var str = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate() +" "+ d.getHours() +":"+ d.getMinutes()+":" + d.getSeconds();//当前时间
		$("#td1").text(local);//服务器端口
		$("#3").text(str);//当前时间

		if (localStorage.pagecount)//统计登录数
		{
			localStorage.pagecount=Number(localStorage.pagecount) +1;
		}else{
			localStorage.pagecount=1;
		}
		$("#td2").text(localStorage.pagecount);//登录次数
		var ip=returnCitySN['cip'];
		var count=localStorage.pagecount;
		var address=returnCitySN['cname'];
		var name=[[${session.name}]];
        $.ajax({
            url:"addLog",
            type:"post",
            data:{port:port,ip:ip,count:count,address:address,time:str,name:name},
            traditional: true,
            success:function (result) {

            }
        })
	});

</script>

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript">
	$("#1").text( returnCitySN['cip'] );//"IP: "
	$("#2").text( returnCitySN['cid'] );//"地区代码
	$("#4").text( returnCitySN['cname'] );//所在地
	$("#6").text(window.location.href);
	$("#7").text(navigator.userAgent);//客户端类型


</script>


<script type="text/javascript">
	//获取网络状态之下的
	$(function () {
		if (typeof Obj == "undefined") {
			var Obj = new Object()
		}
		if (typeof Obj.SWFObjectUtil == "undefined") {
			Obj.SWFObjectUtil = new Object()
		}            Obj.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a) {
			if (!document.getElementById) return;
			this.params = new Object();
			this.variables = new Object();
			this.attributes = new Array();
			if (_1) this.setAttribute("swf", _1);
			if (id) this.setAttribute("id", id);
			if (w) this.setAttribute("width", w);
			if (h) this.setAttribute("height", h);
			if (_5) this.setAttribute("version", new Obj.PlayerVersion(_5.toString().split(".")));                this.installedVer = Obj.SWFObjectUtil.getPlayerVersion();                if (!window.opera && document.all && this.installedVer.major > 7) {                    Obj.SWFObject.doPrepUnload = true                }                if (c) this.addParam("bgcolor", c);                var q = _7 ? _7 : "high";                this.addParam("quality", q);                this.setAttribute("useExpressInstall", false);                this.setAttribute("doExpressInstall", false);                var _c = (_8) ? _8 : window.location;                this.setAttribute("xiRedirectUrl", _c);                this.setAttribute("redirectUrl", "");
			if (_9) this.setAttribute("redirectUrl", _9)
		};            Obj.SWFObject.prototype = {
			useExpressInstall: function (_d) {
				this.xiSWFPath = !_d ? "expressinstall.swf" : _d;
				this.setAttribute("useExpressInstall", true)
			},                setAttribute: function (_e, _f) {
				this.attributes[_e] = _f                },
			getAttribute: function (_10) {
				return this.attributes[_10]                },
			addParam: function (_11, _12) {
				this.params[_11] = _12                },
			getParams: function () {
				return this.params                },
			addVariable: function (_13, _14) {
				this.variables[_13] = _14                },
			getVariable: function (_15) {
				return this.variables[_15]
			},                getVariables: function () {
				return this.variables                },
			getVariablePairs: function () {
				var _16 = new Array();                    var key;
				var _18 = this.getVariables();
				for (key in _18) {
					_16[_16.length] = key + "=" + _18[key]
				}                    return _16                },
			getSWFHTML: function () {                    var _19 = "";
			if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length)
			{                        if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "PlugIn");
				this.setAttribute("swf", this.xiSWFPath)
			}
			_19 = "<embed type=\"application/x-shockwave-flash\" src=\"" + this.getAttribute("swf") + "\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\" style=\"" + this.getAttribute("style") + "\"";                        _19 += " id=\"" + this.getAttribute("id") + "\" name=\"" + this.getAttribute("id") + "\" ";                        var _1a = this.getParams();
			for (var key in _1a) {
				_19 += [key] + "=\"" + _1a[key] + "\" "                        }                        var _1c = this.getVariablePairs().join("&");                        if (_1c.length > 0) {                            _19 += "flashvars=\"" + _1c + "\""                        }                        _19 += "/>"                    } else {                        if (this.getAttribute("doExpressInstall")) {                            this.addVariable("MMplayerType", "ActiveX");                            this.setAttribute("swf", this.xiSWFPath)                        }                        _19 = "<object id=\"" + this.getAttribute("id") + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\" style=\"" + this.getAttribute("style") + "\">";                        _19 += "<param name=\"movie\" value=\"" + this.getAttribute("swf") + "\" />";                        var _1d = this.getParams();                        for (var key in _1d) {                            _19 += "<param name=\"" + key + "\" value=\"" + _1d[key] + "\" />"                        }                        var _1f = this.getVariablePairs().join("&");                        if (_1f.length > 0) {                            _19 += "<param name=\"flashvars\" value=\"" + _1f + "\" />"                        }                        _19 += "</object>"                    }                    return _19                },                write: function (_20) {                    if (this.getAttribute("useExpressInstall")) {                        var _21 = new Obj.PlayerVersion([6, 0, 65]);                        if (this.installedVer.versionIsValid(_21) && !this.installedVer.versionIsValid(this.getAttribute("version"))) {                            this.setAttribute("doExpressInstall", true);                            this.addVariable("MMredirectURL", escape(this.getAttribute("xiRedirectUrl")));                            document.title = document.title.slice(0, 47) + " - Flash Player Installation";                            this.addVariable("MMdoctitle", document.title)                        }                    }                    if (this.getAttribute("doExpressInstall") || this.installedVer.versionIsValid(this.getAttribute("version"))) {                        var n = (typeof _20 == "string") ? document.getElementById(_20) : _20;                        n.innerHTML = this.getSWFHTML();                        return true                    } else {                        if (this.getAttribute("redirectUrl") != "") {                            document.location.replace(this.getAttribute("redirectUrl"))                        }                    }                    return false                }            };            Obj.PlayerVersion = function (_29) {                this.major = _29[0] != null ? parseInt(_29[0]) : 0;                this.minor = _29[1] != null ? parseInt(_29[1]) : 0;                this.rev = _29[2] != null ? parseInt(_29[2]) : 0            };            Obj.SWFObjectUtil.getPlayerVersion = function () {                var _23 = new Obj.PlayerVersion([0, 0, 0]);                if (navigator.plugins && navigator.mimeTypes.length) {                    var x = navigator.plugins["Shockwave Flash"];                    if (x && x.description) {                        _23 = new Obj.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."))                    }                } else {                    if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0) {                        var axo = 1;                        var _26 = 3;                        while (axo) {                            try {                                _26++;                                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + _26);                                _23 = new Obj.PlayerVersion([_26, 0, 0])                            } catch (e) {                                axo = null                            }                        }                    } else {                        try {                            var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")                        } catch (e) {                            try {                                var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");                                _23 = new Obj.PlayerVersion([6, 0, 21]);                                axo.AllowScriptAccess = "always"                            } catch (e) {                                if (_23.major == 6) {                                    return _23                                }                            }                            try {                                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")                            } catch (e) { }                        }                        if (axo != null) {                            _23 = new Obj.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))                        }                    }                }                return _23            };             function getFlashVersion() {                var version = Obj.SWFObjectUtil.getPlayerVersion();                $("#flash_banben").html(version['major'] + "." + version['minor'] + "." + version['rev'])            };             function getScreenSize() {                return {                    width: screen.width,                    height: screen.height                }            }            $("#fenbianlv").html(getScreenSize().width + "*" + getScreenSize().height);             function getNetline() {                $('#netline').text("网络已链接");                window.ononline = function () {                    $('#netline').text("网络已链接")                };                window.onoffline = function () {                    $('#netline').text("网络已断开")                }            }             function getExplorerVersion() {                var Sys = {};                var ua = navigator.userAgent.toLowerCase();                var s;                var result = "";                (s = ua.match(/qqbrowser\/([\d.]+)/)) ? Sys.qqbrowser = s[1] : (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/(trident)\/([\d.]+)/)) ? Sys.ie = '11.0' : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] : (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] : (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;                if (Sys.ie) result = "IE " + Sys.ie;                else if (Sys.firefox) result = "firefox " + Sys.firefox;                else if (Sys.chrome) result = "chrome " + Sys.chrome;                else if (Sys.opera) result = "opera " + Sys.opera;                else if (Sys.safari) result = "safari" + Sys.safari;                else if (Sys.qqbrowser) result = "QQBrowser" + Sys.qqbrowser;                else result = "未知";                $("#liulanqi").html(result + "(内核)")            }             function getOsVersion() {                var opName = "";                var Name = "";                var ua = window.navigator.userAgent;                var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows") || (navigator.platform == "Win64");                var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh") || (navigator.platform == "MacIntel");                if (isMac) {                    opName = "Mac";                    Name = "Mac"                } else if (isWin) {                    var osN = "";                    if (ua.indexOf("WOW") != -1 || ua.indexOf("Win64") != -1) {                        osN = "64"                    } else {                        osN = "32"                    }                    var osV = ua.substr(ua.indexOf("Windows NT ") + 11, 3);                    switch (osV) {                        case "5.0":                            opName = "Windows XP2000";                            Name = "Win2000";                            break;                        case "5.1":                            opName = "Windows XP ";                            Name = "WinXP";                            break;                        case "5.2":                            opName = "Windows 2003";                            Name = "Win2003";                            break;                        case "6.1":                            opName = "Windows 7 " + osN + "位";                            Name = "Win7";                            break;                        case "6.3":                            opName = "Windows 8 " + osN + "位";                            Name = "Win8";                            break;                        default:                            Name = "Other";                            break                    }                } else {                    var isUnix = (navigator.platform == "X11") && !isWin && !isMac;                    if (isUnix) {                        opName = "Unix";                        Name = "Unix"                    } else {                        var isLinux = (String(navigator.platform).indexOf("Linux") > -1);                        if (isLinux) {                            opName = "Linux";                            Name = "Linux"                        } else {                            Name = "Other"                        }                    }                }                $("#xitong").html(opName)            }             function getNet() {                var starttime = new Date();                var size = 0,                    url = "2017-08-22_233329.jpg?" + new Date().valueOf();                var xhr = $.ajax({                    type: 'get',                    url: url,                    success: function (msg) {                        size = xhr.getResponseHeader('Content-Length');                        $.get(url, function (data) {                            var endtime = new Date();                            usetime = endtime - starttime;                            if (usetime == 0) {                                usetime = 10                            }                            var speed = (size / (1024)) / (usetime / (1000));                            var result_text = speed.toFixed(2);                            $("#wangsu").html(result_text + "KB/S")                        })                    }                })            }            getNet();            getOsVersion();            getExplorerVersion();            getFlashVersion();            getNetline()        }());
</script>


<script src="js/osversion.js"></script>
<script>
	var os = {};
	setOsData(os);
	$("#8").text(os.name);//系统是

</script>



</body>
</html>